home *** CD-ROM | disk | FTP | other *** search
-
-
-
- XXXXmmmmPPPPuuuusssshhhhBBBBuuuuttttttttoooonnnn((((3333XXXX)))) UUUUNNNNIIIIXXXX SSSSyyyysssstttteeeemmmm VVVV XXXXmmmmPPPPuuuusssshhhhBBBBuuuuttttttttoooonnnn((((3333XXXX))))
-
-
-
- NNNNAAAAMMMMEEEE
- _X_m_P_u_s_h_B_u_t_t_o_n - The PushButton widget class
-
- SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
- #include <Xm/PushB.h>
-
- DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
- PushButton issues commands within an application. It
- consists of a text label or pixmap surrounded by a border
- shadow. When a PushButton is selected, the shadow changes
- to give the appearance that it has been pressed in. When a
- PushButton is unselected, the shadow changes to give the
- appearance that it is out.
-
- The default behavior associated with a PushButton in a menu
- depends on the type of menu system in which it resides. By
- default, _B_S_e_l_e_c_t controls the behavior of the PushButton.
- In addition, _B_M_e_n_u controls the behavior of the PushButton
- if it resides in a Menu system. The actual mouse button
- used is determined by its RowColumn parent.
-
- Thickness for a second shadow, used when the PushButton is
- the default button, may be specified by using the
- _X_m_N_s_h_o_w_A_s_D_e_f_a_u_l_t resource. If it has a non-zero value, the
- Label's resources _X_m_N_m_a_r_g_i_n_L_e_f_t, _X_m_N_m_a_r_g_i_n_R_i_g_h_t,
- _X_m_N_m_a_r_g_i_n_T_o_p, and _X_m_N_m_a_r_g_i_n_B_o_t_t_o_m may be modified to
- accommodate the second shadow.
-
- If an initial value is specified for _X_m_N_a_r_m_P_i_x_m_a_p but not
- for _X_m_N_l_a_b_e_l_P_i_x_m_a_p, the _X_m_N_a_r_m_P_i_x_m_a_p value is used for
- _X_m_N_l_a_b_e_l_P_i_x_m_a_p.
-
- CCCCllllaaaasssssssseeeessss
- PushButton inherits behavior and resources from _C_o_r_e,
- _X_m_P_r_i_m_i_t_i_v_e, and _X_m_L_a_b_e_l Classes.
-
- The class pointer is _x_m_P_u_s_h_B_u_t_t_o_n_W_i_d_g_e_t_C_l_a_s_s.
-
- The class name is _X_m_P_u_s_h_B_u_t_t_o_n.
-
- NNNNeeeewwww RRRReeeessssoooouuuurrrrcccceeeessss
- The following table defines a set of widget resources used
- by the programmer to specify data. The programmer can also
- set the resource values for the inherited classes to set
- attributes for this widget. To reference a resource by name
- or by class in a .Xdefaults file, remove the _X_m_N or _X_m_C
- prefix and use the remaining letters. To specify one of the
- defined values for a resource in a .Xdefaults file, remove
- the _X_m prefix and use the remaining letters (in either
- lowercase or uppercase, but include any underscores between
- words). The codes in the access column indicate if the
- given resource can be set at creation time (C), set by using
-
-
-
- Page 1 (printed 11/11/03)
-
-
-
-
-
-
- XXXXmmmmPPPPuuuusssshhhhBBBBuuuuttttttttoooonnnn((((3333XXXX)))) UUUUNNNNIIIIXXXX SSSSyyyysssstttteeeemmmm VVVV XXXXmmmmPPPPuuuusssshhhhBBBBuuuuttttttttoooonnnn((((3333XXXX))))
-
-
-
- _X_t_S_e_t_V_a_l_u_e_s (S), retrieved by using _X_t_G_e_t_V_a_l_u_e_s (G), or is
- not applicable (N/A).
-
- XXXXmmmmPPPPuuuusssshhhhBBBBuuuuttttttttoooonnnn RRRReeeessssoooouuuurrrrcccceeee SSSSeeeetttt
- NNNNaaaammmmeeee CCCCllllaaaassssssss TTTTyyyyppppeeee DDDDeeeeffffaaaauuuulllltttt AAAAcccccccceeeessssssss
- __________________________________________________________________________________________________________________
- XmNactivateCallback XmCCallback XtCallbackList NULL C
- XmNarmCallback XmCCallback XtCallbackList NULL C
- XmNarmColor XmCArmColor Pixel dynamic CSG
- XmNarmPixmap XmCArmPixmap Pixmap XmUNSPECIFIED_PIXMAP CSG
- XmNdefaultButtonShadowThickness XmCDefaultButtonShadowThickness Dimension dynamic CSG
- XmNdisarmCallback XmCCallback XtCallbackList NULL C
- XmNfillOnArm XmCFillOnArm Boolean True CSG
- XmNmultiClick XmCMultiClick unsigned char dynamic CSG
- XmNshowAsDefault XmCShowAsDefault Dimension 0 CSG
-
-
- _X_m_N_a_c_t_i_v_a_t_e_C_a_l_l_b_a_c_k
- Specifies the list of callbacks that is called when
- PushButton is activated. PushButton is activated when
- the user presses and releases the active mouse button
- while the pointer is inside that widget. Activating
- the PushButton also disarms it. For this callback the
- reason is _X_m_C_R__A_C_T_I_V_A_T_E.
-
- _X_m_N_a_r_m_C_a_l_l_b_a_c_k
- Specifies the list of callbacks that is called when
- PushButton is armed. PushButton is armed when the user
- presses the active mouse button while the pointer is
- inside that widget. For this callback the reason is
- _X_m_C_R__A_R_M.
-
- _X_m_N_a_r_m_C_o_l_o_r
- Specifies the color with which to fill the armed
- button. _X_m_N_f_i_l_l_O_n_A_r_m must be set to True for this
- resource to have an effect. The default for a color
- display is a color between the background and the
- bottom shadow color. For a monochrome display, the
- default is set to the foreground color, and any text in
- the label appears in the background color when the
- button is armed.
-
- _X_m_N_a_r_m_P_i_x_m_a_p
- Specifies the pixmap to be used as the button face if
- _X_m_N_l_a_b_e_l_T_y_p_e is _X_m_P_I_X_M_A_P and PushButton is armed. This
- resource is disabled when the PushButton is in a menu.
-
- _X_m_N_d_e_f_a_u_l_t_B_u_t_t_o_n_S_h_a_d_o_w_T_h_i_c_k_n_e_s_s
- This resource specifies the width of the default button
- indicator shadow. If this resource is zero, the width
- of the shadow comes from the value of the
- _X_m_N_s_h_o_w_A_s_D_e_f_a_u_l_t resource. If this resource is greater
-
-
-
- Page 2 (printed 11/11/03)
-
-
-
-
-
-
- XXXXmmmmPPPPuuuusssshhhhBBBBuuuuttttttttoooonnnn((((3333XXXX)))) UUUUNNNNIIIIXXXX SSSSyyyysssstttteeeemmmm VVVV XXXXmmmmPPPPuuuusssshhhhBBBBuuuuttttttttoooonnnn((((3333XXXX))))
-
-
-
- than zero, the _X_m_N_s_h_o_w_A_s_D_e_f_a_u_l_t resource is only used
- to specify whether this button is the default. The
- default value is the initial value of _X_m_N_s_h_o_w_A_s_D_e_f_a_u_l_t.
-
- _X_m_N_d_i_s_a_r_m_C_a_l_l_b_a_c_k
- Specifies the list of callbacks that is called when
- PushButton is disarmed. PushButton is disarmed when
- the user presses and releases the active mouse button
- while the pointer is inside that widget. For this
- callback, the reason is _X_m_C_R__D_I_S_A_R_M.
-
- _X_m_N_f_i_l_l_O_n_A_r_m
- Forces the PushButton to fill the background of the
- button with the color specified by _X_m_N_a_r_m_C_o_l_o_r when the
- button is armed and when this resource is set to True.
- If False, only the top and bottom shadow colors are
- switched. When the PushButton is in a menu, this
- resource is ignored and assumed to be False.
-
- _X_m_N_m_u_l_t_i_C_l_i_c_k
- If a button click is followed by another button click
- within the time span specified by the display's multi-
- click time, and this resource is set to
- _X_m_M_U_L_T_I_C_L_I_C_K__D_I_S_C_A_R_D, do not process the second click.
- If this resource is set to _X_m_M_U_L_T_I_C_L_I_C_K__K_E_E_P, process
- the event and increment cccclllliiiicccckkkk____ccccoooouuuunnnntttt in the callback
- structure. When the button is in a menu, the default
- is _X_m_M_U_L_T_I_C_L_I_C_K__D_I_S_C_A_R_D; otherwise, for a button not in
- a menu, _X_m_M_U_L_T_I_C_L_I_C_K__K_E_E_P is the default value.
-
- _X_m_N_s_h_o_w_A_s_D_e_f_a_u_l_t
- If _X_m_N_d_e_f_a_u_l_t_B_u_t_t_o_n_S_h_a_d_o_w_T_h_i_c_k_n_e_s_s is greater than
- zero, a value greater than zero in this resource
- specifies to mark this button as the default button.
- If _X_m_N_d_e_f_a_u_l_t_B_u_t_t_o_n_S_h_a_d_o_w_T_h_i_c_k_n_e_s_s is zero, a value
- greater than zero in this resource specifies to mark
- this button as the default button with the shadow
- thickness specified by this resource. The space
- between the shadow and the default shadow is equal to
- the sum of both shadows. The default value is zero.
-
- When the XmDisplay resource _d_e_f_a_u_l_t_B_u_t_t_o_n_E_m_p_h_a_s_i_s is
- "external_highlight" (the default), the PushButton
- draws the location cursor outside of the outer shadow.
- When this resource is "internal_highlight", the
- highlight is drawn between the inner and outer shadows.
-
- When the _X_m_N_s_h_o_w_A_s_D_e_f_a_u_l_t value is not zero, the Label
- resources _X_m_N_m_a_r_g_i_n_L_e_f_t, _X_m_N_m_a_r_g_i_n_R_i_g_h_t, _X_m_N_m_a_r_g_i_n_T_o_p,
- and _X_m_N_m_a_r_g_i_n_B_o_t_t_o_m may be modified to accommodate the
- second shadow. This resource is disabled when the
- PushButton is in a menu.
-
-
-
- Page 3 (printed 11/11/03)
-
-
-
-
-
-
- XXXXmmmmPPPPuuuusssshhhhBBBBuuuuttttttttoooonnnn((((3333XXXX)))) UUUUNNNNIIIIXXXX SSSSyyyysssstttteeeemmmm VVVV XXXXmmmmPPPPuuuusssshhhhBBBBuuuuttttttttoooonnnn((((3333XXXX))))
-
-
-
- IIIInnnnhhhheeeerrrriiiitttteeeedddd RRRReeeessssoooouuuurrrrcccceeeessss
- PushButton inherits behavior and resources from the
- following superclasses. For a complete description of each
- resource, refer to the man page for that superclass.
-
- XXXXmmmmLLLLaaaabbbbeeeellll RRRReeeessssoooouuuurrrrcccceeee SSSSeeeetttt
- NNNNaaaammmmeeee CCCCllllaaaassssssss TTTTyyyyppppeeee DDDDeeeeffffaaaauuuulllltttt AAAAcccccccceeeessssssss
- ___________________________________________________________________________________________________________
- XmNaccelerator XmCAccelerator String NULL CSG
- XmNacceleratorText XmCAcceleratorText XmString NULL CSG
- XmNalignment XmCAlignment unsigned char dynamic CSG
- XmNfontList XmCFontList XmFontList dynamic CSG
- XmNlabelInsensitivePixmap XmCLabelInsensitivePixmap Pixmap XmUNSPECIFIED_PIXMAP CSG
- XmNlabelPixmap XmCLabelPixmap Pixmap dynamic CSG
- XmNlabelString XmCXmString XmString dynamic CSG
- XmNlabelType XmCLabelType unsigned char XmSTRING CSG
- XmNmarginBottom XmCMarginBottom Dimension dynamic CSG
- XmNmarginHeight XmCMarginHeight Dimension 2 CSG
- XmNmarginLeft XmCMarginLeft Dimension dynamic CSG
- XmNmarginRight XmCMarginRight Dimension dynamic CSG
- XmNmarginTop XmCMarginTop Dimension dynamic CSG
- XmNmarginWidth XmCMarginWidth Dimension 2 CSG
- XmNmnemonic XmCMnemonic KeySym NULL CSG
- XmNmnemonicCharSet XmCMnemonicCharSet String XmFONTLIST_DEFAULT_TAG CSG
- XmNrecomputeSize XmCRecomputeSize Boolean True CSG
- XmNstringDirection XmCStringDirection XmStringDirection dynamic CSG
-
-
- XXXXmmmmPPPPrrrriiiimmmmiiiittttiiiivvvveeee RRRReeeessssoooouuuurrrrcccceeee SSSSeeeetttt
- NNNNaaaammmmeeee CCCCllllaaaassssssss TTTTyyyyppppeeee DDDDeeeeffffaaaauuuulllltttt AAAAcccccccceeeessssssss
- ________________________________________________________________________________________________
- XmNbottomShadowColor XmCBottomShadowColor Pixel dynamic CSG
- XmNbottomShadowPixmap XmCBottomShadowPixmap Pixmap XmUNSPECIFIED_PIXMAP CSG
- XmNforeground XmCForeground Pixel dynamic CSG
- XmNhelpCallback XmCCallback XtCallbackList NULL C
- XmNhighlightColor XmCHighlightColor Pixel dynamic CSG
- XmNhighlightOnEnter XmCHighlightOnEnter Boolean False CSG
- XmNhighlightPixmap XmCHighlightPixmap Pixmap dynamic CSG
- XmNhighlightThickness XmCHighlightThickness Dimension 2 CSG
- XmNnavigationType XmCNavigationType XmNavigationType XmNONE CSG
- XmNshadowThickness XmCShadowThickness Dimension 2 CSG
- XmNtopShadowColor XmCTopShadowColor Pixel dynamic CSG
- XmNtopShadowPixmap XmCTopShadowPixmap Pixmap dynamic CSG
- XmNtraversalOn XmCTraversalOn Boolean True CSG
- XmNunitType XmCUnitType unsigned char dynamic CSG
- XmNuserData XmCUserData XtPointer NULL CSG
-
-
- CCCCoooorrrreeee RRRReeeessssoooouuuurrrrcccceeee SSSSeeeetttt
- NNNNaaaammmmeeee CCCCllllaaaassssssss TTTTyyyyppppeeee DDDDeeeeffffaaaauuuulllltttt AAAAcccccccceeeessssssss
-
-
-
-
-
- Page 4 (printed 11/11/03)
-
-
-
-
-
-
- XXXXmmmmPPPPuuuusssshhhhBBBBuuuuttttttttoooonnnn((((3333XXXX)))) UUUUNNNNIIIIXXXX SSSSyyyysssstttteeeemmmm VVVV XXXXmmmmPPPPuuuusssshhhhBBBBuuuuttttttttoooonnnn((((3333XXXX))))
-
-
-
- ______________________________________________________________________________________________________________
- XmNaccelerators XmCAccelerators XtAccelerators dynamic CSG
- XmNancestorSensitive XmCSensitive Boolean dynamic G
- XmNbackground XmCBackground Pixel dynamic CSG
- XmNbackgroundPixmap XmCPixmap Pixmap XmUNSPECIFIED_PIXMAP CSG
- XmNborderColor XmCBorderColor Pixel XtDefaultForeground CSG
- XmNborderPixmap XmCPixmap Pixmap XmUNSPECIFIED_PIXMAP CSG
- XmNborderWidth XmCBorderWidth Dimension 0 CSG
- XmNcolormap XmCColormap Colormap dynamic CG
- XmNdepth XmCDepth int dynamic CG
- XmNdestroyCallback XmCCallback XtCallbackList NULL C
- XmNheight XmCHeight Dimension dynamic CSG
- XmNinitialResourcesPersistent XmCInitialResourcesPersistent Boolean True C
- XmNmappedWhenManaged XmCMappedWhenManaged Boolean True CSG
- XmNscreen XmCScreen Screen * dynamic CG
- XmNsensitive XmCSensitive Boolean True CSG
- XmNtranslations XmCTranslations XtTranslations dynamic CSG
- XmNwidth XmCWidth Dimension dynamic CSG
- XmNx XmCPosition Position 0 CSG
- XmNy XmCPosition Position 0 CSG
-
-
- CCCCaaaallllllllbbbbaaaacccckkkk IIIInnnnffffoooorrrrmmmmaaaattttiiiioooonnnn
- A pointer to the following structure is passed to each
- callback:
- typedef struct
- {
- int rrrreeeeaaaassssoooonnnn;
- _X_E_v_e_n_t **** eeeevvvveeeennnntttt;
- _i_n_t cccclllliiiicccckkkk____ccccoooouuuunnnntttt;
- } _X_m_P_u_s_h_B_u_t_t_o_n_C_a_l_l_b_a_c_k_S_t_r_u_c_t;
-
- rrrreeeeaaaassssoooonnnn
- Indicates why the callback was invoked.
-
- eeeevvvveeeennnntttt
- Points to the _X_E_v_e_n_t that triggered the callback.
-
- cccclllliiiicccckkkk____ccccoooouuuunnnntttt
- This value is valid only when the reason is
- _X_m_C_R__A_C_T_I_V_A_T_E. It contains the number of clicks in the
- last multiclick sequence if the _X_m_N_m_u_l_t_i_C_l_i_c_k resource
- is set to _X_m_M_U_L_T_I_C_L_I_C_K__K_E_E_P, otherwise it contains _1.
- The activate callback is invoked for each click if
- _X_m_N_m_u_l_t_i_C_l_i_c_k is set to _X_m_M_U_L_T_I_C_L_I_C_K__K_E_E_P.
-
- TTTTrrrraaaannnnssssllllaaaattttiiiioooonnnnssss
- XmPushButton includes translations from Primitive.
-
- Note that altering translations in #_o_v_e_r_r_i_d_e or #_a_u_g_m_e_n_t
- mode is undefined.
-
-
-
-
- Page 5 (printed 11/11/03)
-
-
-
-
-
-
- XXXXmmmmPPPPuuuusssshhhhBBBBuuuuttttttttoooonnnn((((3333XXXX)))) UUUUNNNNIIIIXXXX SSSSyyyysssstttteeeemmmm VVVV XXXXmmmmPPPPuuuusssshhhhBBBBuuuuttttttttoooonnnn((((3333XXXX))))
-
-
-
- Additional XmPushButton translations for XmPushButtons not
- in a menu system are listed below. These translations may
- not directly correspond to a translation table.
- BDrag Press: ProcessDrag()
-
- BSelect Press: Arm()
- BSelect Click: Activate()
- Disarm()
- BSelect Release:Activate()
- Disarm()
- BSelect Press 2+:MultiArm()
- BSelect Release 2+:MultiActivate()
- Disarm()
- KSelect: ArmAndActivate()
- KHelp: Help()
-
- XmPushButton inherits menu traversal translations from
- XmLabel. Additional XmPushButton translations for
- PushButtons in a menu system are listed below. In a menu
- system, _B_M_e_n_u also performs the _B_S_e_l_e_c_t actions. These
- translations may not directly correspond to a translation
- table.
- BSelect Press: BtnDown()
- BSelect Release:BtnUp()
- KActivate: ArmAndActivate()
- KSelect: ArmAndActivate()
- MAny KCancel: MenuShellPopdownOne()
-
- AAAAccccttttiiiioooonnnn RRRRoooouuuuttttiiiinnnneeeessss
- The XmPushButton action routines are described below:
-
- _A_c_t_i_v_a_t_e():
- This action draws the shadow in the unarmed state. If
- the button is not in a menu and if _X_m_N_f_i_l_l_O_n_A_r_m is set
- to True, the background color reverts to the unarmed
- color. If _X_m_N_l_a_b_e_l_T_y_p_e is _X_m_P_I_X_M_A_P, the _X_m_N_l_a_b_e_l_P_i_x_m_a_p
- is used for the button face. If the pointer is still
- within the button, this action calls the callbacks for
- _X_m_N_a_c_t_i_v_a_t_e_C_a_l_l_b_a_c_k.
-
- _A_r_m():
- This action arms the PushButton. It draws the shadow
- in the armed state. If the button is not in a menu and
- if _X_m_N_f_i_l_l_O_n_A_r_m is set to True, it fills the button
- with the color specified by _X_m_N_a_r_m_C_o_l_o_r. If
- _X_m_N_l_a_b_e_l_T_y_p_e is _X_m_P_I_X_M_A_P, the _X_m_N_a_r_m_P_i_x_m_a_p is used for
- the button face. It calls the _X_m_N_a_r_m_C_a_l_l_b_a_c_k
- callbacks.
-
- _A_r_m_A_n_d_A_c_t_i_v_a_t_e():
- In a menu, does the following: Unposts all menus in
- the menu hierarchy. Unless the button is already
-
-
-
- Page 6 (printed 11/11/03)
-
-
-
-
-
-
- XXXXmmmmPPPPuuuusssshhhhBBBBuuuuttttttttoooonnnn((((3333XXXX)))) UUUUNNNNIIIIXXXX SSSSyyyysssstttteeeemmmm VVVV XXXXmmmmPPPPuuuusssshhhhBBBBuuuuttttttttoooonnnn((((3333XXXX))))
-
-
-
- armed, calls the _X_m_N_a_r_m_C_a_l_l_b_a_c_k callbacks. Calls the
- _X_m_N_a_c_t_i_v_a_t_e_C_a_l_l_b_a_c_k and _X_m_N_d_i_s_a_r_m_C_a_l_l_b_a_c_k callbacks.
-
- Outside a menu, does the following: Draws the shadow
- in the armed state and, if _X_m_N_f_i_l_l_O_n_A_r_m is set to True,
- fills the button with the color specified by
- _X_m_N_a_r_m_C_o_l_o_r. If _X_m_N_l_a_b_e_l_T_y_p_e is _X_m_P_I_X_M_A_P, the
- _X_m_N_a_r_m_P_i_x_m_a_p is used for the button face. Calls the
- _X_m_N_a_r_m_C_a_l_l_b_a_c_k callbacks.
-
- Outside a menu, this action also arranges for the
- following to happen, either immediately or at a later
- time: The shadow is drawn in the unarmed state and, if
- _X_m_N_f_i_l_l_O_n_A_r_m is set to True, the background color
- reverts to the unarmed color. If _X_m_N_l_a_b_e_l_T_y_p_e is
- _X_m_P_I_X_M_A_P, the _X_m_N_l_a_b_e_l_P_i_x_m_a_p is used for the button
- face. The _X_m_N_a_c_t_i_v_a_t_e_C_a_l_l_b_a_c_k and _X_m_N_d_i_s_a_r_m_C_a_l_l_b_a_c_k
- callbacks are called.
-
- _B_t_n_D_o_w_n():
- This action unposts any menus posted by the
- PushButton's parent menu, disables keyboard traversal
- for the menu, and enables mouse traversal for the menu.
- It draws the shadow in the armed state and, unless the
- button is already armed, calls the _X_m_N_a_r_m_C_a_l_l_b_a_c_k
- callbacks.
-
- _B_t_n_U_p():
- This action unposts all menus in the menu hierarchy and
- activates the PushButton. It calls the
- _X_m_N_a_c_t_i_v_a_t_e_C_a_l_l_b_a_c_k callbacks and then the
- _X_m_N_d_i_s_a_r_m_C_a_l_l_b_a_c_k callbacks.
-
- _D_i_s_a_r_m():
- Calls the callbacks for _X_m_N_d_i_s_a_r_m_C_a_l_l_b_a_c_k.
-
- _H_e_l_p():
- In a Pulldown or Popup MenuPane, unposts all menus in
- the menu hierarchy and, when the shell's keyboard focus
- policy is _X_m_E_X_P_L_I_C_T, restores keyboard focus to the
- widget that had the focus before the menu system was
- entered. Calls the callbacks for _X_m_N_h_e_l_p_C_a_l_l_b_a_c_k if
- any exist. If there are no help callbacks for this
- widget, this action calls the help callbacks for the
- nearest ancestor that has them.
-
- _M_e_n_u_S_h_e_l_l_P_o_p_d_o_w_n_O_n_e():
- In a toplevel Pulldown MenuPane from a MenuBar, unposts
- the menu, disarms the MenuBar CascadeButton and the
- MenuBar, and, when the shell's keyboard focus policy is
- _X_m_E_X_P_L_I_C_T, restores keyboard focus to the widget that
- had the focus before the MenuBar was entered. In other
-
-
-
- Page 7 (printed 11/11/03)
-
-
-
-
-
-
- XXXXmmmmPPPPuuuusssshhhhBBBBuuuuttttttttoooonnnn((((3333XXXX)))) UUUUNNNNIIIIXXXX SSSSyyyysssstttteeeemmmm VVVV XXXXmmmmPPPPuuuusssshhhhBBBBuuuuttttttttoooonnnn((((3333XXXX))))
-
-
-
- Pulldown MenuPanes, unposts the menu.
-
- In a Popup MenuPane, unposts the menu and restores
- keyboard focus to the widget from which the menu was
- posted.
-
- _M_u_l_t_i_A_c_t_i_v_a_t_e():
- If _X_m_N_m_u_l_t_i_C_l_i_c_k is _X_m_M_U_L_T_I_C_L_I_C_K__D_I_S_C_A_R_D, this action
- does nothing.
-
- If _X_m_N_m_u_l_t_i_C_l_i_c_k is _X_m_M_U_L_T_I_C_L_I_C_K__K_E_E_P, this action does
- the following: Increments cccclllliiiicccckkkk____ccccoooouuuunnnntttt in the callback
- structure. Draws the shadow in the unarmed state. If
- the button is not in a menu and if _X_m_N_f_i_l_l_O_n_A_r_m is set
- to True, the background color reverts to the unarmed
- color. If _X_m_N_l_a_b_e_l_T_y_p_e is _X_m_P_I_X_M_A_P, the _X_m_N_l_a_b_e_l_P_i_x_m_a_p
- is used for the button face. If the pointer is within
- the PushButton, calls the callbacks for
- _X_m_N_a_c_t_i_v_a_t_e_C_a_l_l_b_a_c_k. Calls the callbacks for
- _X_m_N_d_i_s_a_r_m_C_a_l_l_b_a_c_k.
-
- _M_u_l_t_i_A_r_m():
- If _X_m_N_m_u_l_t_i_C_l_i_c_k is _X_m_M_U_L_T_I_C_L_I_C_K__D_I_S_C_A_R_D, this action
- does nothing.
-
- If _X_m_N_m_u_l_t_i_C_l_i_c_k is _X_m_M_U_L_T_I_C_L_I_C_K__K_E_E_P, this action does
- the following: Draws the shadow in the armed state.
- If the button is not in a menu and if _X_m_N_f_i_l_l_O_n_A_r_m is
- set to True, fills the button with the color specified
- by _X_m_N_a_r_m_C_o_l_o_r. If _X_m_N_l_a_b_e_l_T_y_p_e is _X_m_P_I_X_M_A_P, the
- _X_m_N_a_r_m_P_i_x_m_a_p is used for the button face. Calls the
- _X_m_N_a_r_m_C_a_l_l_b_a_c_k callbacks.
-
- _P_r_o_c_e_s_s_D_r_a_g():
- Drags the contents of a PushButton label, identified by
- pressing _B_D_r_a_g. This action creates a DragContext
- object whose _X_m_N_e_x_p_o_r_t_T_a_r_g_e_t_s resource is set to
- "COMPOUND_TEXT" for a label type of _X_m_S_T_R_I_N_G;
- otherwise, "PIXMAP" if the label type is _X_m_P_I_X_M_A_P.
- This action is undefined for PushButtons used in a menu
- system.
-
- This action is disabled if the XmDisplay's
- _e_n_a_b_l_e_U_n_s_e_l_e_c_t_a_b_l_e_D_r_a_g resource is True.
-
- AAAAddddddddiiiittttiiiioooonnnnaaaallll BBBBeeeehhhhaaaavvvviiiioooorrrr
- This widget has the additional behavior described below:
-
- <_E_n_t_e_r_W_i_n_d_o_w>:
- In a menu, if keyboard traversal is enabled, this
- action does nothing. Otherwise, it draws the shadow in
- the armed state and calls the _X_m_N_a_r_m_C_a_l_l_b_a_c_k callbacks.
-
-
-
- Page 8 (printed 11/11/03)
-
-
-
-
-
-
- XXXXmmmmPPPPuuuusssshhhhBBBBuuuuttttttttoooonnnn((((3333XXXX)))) UUUUNNNNIIIIXXXX SSSSyyyysssstttteeeemmmm VVVV XXXXmmmmPPPPuuuusssshhhhBBBBuuuuttttttttoooonnnn((((3333XXXX))))
-
-
-
- If the PushButton is not in a menu and the cursor
- leaves and then reenters the PushButton's window while
- the button is pressed, this action draws the shadow in
- the armed state. If _X_m_N_f_i_l_l_O_n_A_r_m is set to True, it
- also fills the button with the color specified by
- _X_m_N_a_r_m_C_o_l_o_r. If _X_m_N_l_a_b_e_l_T_y_p_e is _X_m_P_I_X_M_A_P, the
- _X_m_N_a_r_m_P_i_x_m_a_p is used for the button face.
-
- <_L_e_a_v_e_W_i_n_d_o_w>:
- In a menu, if keyboard traversal is enabled, this
- action does nothing. Otherwise, it draws the shadow in
- the unarmed state and calls the _X_m_N_d_i_s_a_r_m_C_a_l_l_b_a_c_k
- callbacks.
-
- If the PushButton is not in a menu and the cursor
- leaves the PushButton's window while the button is
- pressed, this action draws the shadow in the unarmed
- state. If _X_m_N_f_i_l_l_O_n_A_r_m is set to True, the background
- color reverts to the unarmed color. If _X_m_N_l_a_b_e_l_T_y_p_e is
- _X_m_P_I_X_M_A_P, the _X_m_N_l_a_b_e_l_P_i_x_m_a_p is used for the button
- face.
-
- VVVViiiirrrrttttuuuuaaaallll BBBBiiiinnnnddddiiiinnnnggggssss
- The bindings for virtual keys are vendor specific. For
- information about bindings for virtual buttons and keys, see
- _V_i_r_t_u_a_l_B_i_n_d_i_n_g_s(_3_X).
-
- RRRREEEELLLLAAAATTTTEEEEDDDD IIIINNNNFFFFOOOORRRRMMMMAAAATTTTIIIIOOOONNNN
- _C_o_r_e(_3_X), _X_m_C_r_e_a_t_e_P_u_s_h_B_u_t_t_o_n(_3_X), _X_m_D_i_s_p_l_a_y(_3_X),
- _X_m_L_a_b_e_l(_3_X), _X_m_P_r_i_m_i_t_i_v_e(_3_X), and _X_m_R_o_w_C_o_l_u_m_n(_3_X).
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Page 9 (printed 11/11/03)
-
-
-
-